package com.antgroup.seckill.business.common.vo.request;
import com.antgroup.seckill.business.common.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

/**
 * @author wangxy
 * @date 2024/7/26 21:20
 */
@Data
public class UserLoginRequest {

    @NotNull(message = "nickName should not be null")
    private String nickName;

    @NotNull(message = "password should not be null")
    @Length(min = 6,max = 20)
    private String password;

    @NotNull(message = "mobile should not be null")
    @IsMobile
    private String mobile;


}
